package com.realtyManage.springboot.Dao;


import com.realtyManage.springboot.Model.Do.CouponDetail;
import com.realtyManage.springboot.Model.Do.ExchangeCoupon;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.List;

/**
 *规则说明
 *
 * @author 杭州素色网络科技有限公司
 * @since 2019-12-19
 */

@Repository
public interface CouponDetailRepository extends JpaRepository<CouponDetail, Integer>, JpaSpecificationExecutor<CouponDetail> {

    @Query(value = "SELECT * FROM coupon_detail",nativeQuery = true)
    CouponDetail findCouponDetail();
}
